import request from '@/utils/request'

// 查询产品标题维护列表
export function listConfigProductTittle(query) {
  return request({
    url: '/amz/configProductTittle/list',
    method: 'get',
    params: query
  })
}

// 查询产品标题维护详细
export function getConfigProductTittle(id) {
  return request({
    url: '/amz/configProductTittle/' + id,
    method: 'get'
  })
}

// 新增产品标题维护
export function addConfigProductTittle(data) {
  return request({
    url: '/amz/configProductTittle',
    method: 'post',
    data: data
  })
}

// 修改产品标题维护
export function updateConfigProductTittle(data) {
  return request({
    url: '/amz/configProductTittle',
    method: 'put',
    data: data
  })
}

// 删除产品标题维护
export function delConfigProductTittle(id) {
  return request({
    url: '/amz/configProductTittle/' + id,
    method: 'delete'
  })
}

// 导出产品标题维护
export function exportConfigProductTittle(query) {
  return request({
    url: '/amz/configProductTittle/export',
    method: 'get',
    params: query
  })
}

// qc语言类型改变时，获取初始化标题数据，qcProductCategory等于0，qcLanguageType等于对应语言的数据
export function qcLanguageTypeChange(qcLanguageType) {
  return request({
    url: '/amz/configProductTittle/qcLanguageTypeChange',
    method: 'post',
    data: qcLanguageType
  })
}
